<!--{template "wap_header"}-->
<link href="../templates/default/styles/me.address.css" rel="stylesheet" type="text/css" />
<div class="entry" style="display: none;"></div>
<script type="text/javascript" src="../static/js/xialadizhi_2014.js"></script>
<div class="order-conent">
	<!--{loop $addressList $address}-->
		<section class="common-items order-siteinfo moresite">
		<div class="common-item add-click">
			<i aid="{$address['zip']}"></i>
			<div class="item-content">{$address['region']}{$address['address']},{$address['name']},{$address['phone']}</div>
			<ul class="mc-tit my-books">
				<li><a href="javascript:address_edit({$address['id']});" class="cur">编辑</a></li>
				<li><a href="javascript:address_del({$address['id']});">删除</a></li>
			</ul>


		</div>
	</section>
	<!--{/loop}-->	
	<div class="entry-succ">需要编辑地址/先点新增按钮,再点编辑</div>
	<p class="morePayMethods" style="margin-bottom:0;"  id="show_button"><a href="javascript:address_add();" >新增地址</a><i></i></p>

			<div id="choosed_address" style="display: none;">
			<div class="common-title">收货信息</div>
			<section class="common-items order-siteinfo">
				<div class="common-item">
					<i class="checked"></i>
					<div class="item-content"></div>
				</div>
			</section>
		</div>
<div id="add_new123" style="display:block" >
<div id="address_new">
<form id="address_new_form" method="post" action="address.save">
			<div class="common-title">收货地址</div>
				<section class="common-items order-siteedit">
				<input id="addr_id" name="id" type="hidden" value="0" class="validate[required,custom[number]]" />
				<div class="common-item"> <span class="item-label">省市：</span>
					<div class="item-content">
						<select name="province" id="addr_province" class="validate[required]"></select>
					</div>
				</div>
				<div class="common-item"> <span class="item-label">城市：</span>
					<div class="item-content">
						<select id="addr_city" name="city" class="validate[required]"></select>
					</div>
				</div>
				<div class="common-item"> <span class="item-label">区/县：</span>
					<div class="item-content">
						<select id="addr_country" name="country"  ></select>
					</div>
				</div>
				<div class="common-item"> <span class="item-label">邮编：</span>
					<div class="item-content">
						<input name="zip" style="border: none;background: none;box-shadow: none;height:24px" id="addr_zip" type="tel" placeholder="六位数字" class="zhaoinput" size="60" class="validate[optional,custom[number],minSize[6],maxSize[6]]">
					</div>
				</div>
				<div class="common-item"> <span class="item-label">街道地址：</span>
					<div class="item-content">
						<textarea id="addr_address" cols="15" rows="3" name="address" placeholder="请输入文本" style="width:100%; height:auto; color:#999; font-size:14px; text-align:left; border:none; line-height: 23px;" class="validate[required,minSize[5],maxSize[30]]"></textarea>
					</div>
				</div>

			</section>
			<div class="common-title">收货人</div>
			<section class="common-items">
				<div class="common-item"> <span class="item-label ver-phone-tit">姓名：</span>
					<div class="item-content">
						<input id="addr_name" name="name" style="border: none;background: none;box-shadow: none;height:24px" type="text" size="60" placeholder="请输入姓名" class="validate[required,minSize[2],maxSize[8]]] zhaoinput" />
					</div>
				</div>
				<div class="common-item"> <span class="item-label ver-phone-tit">电话：</span>
					<div class="item-content">
						<input id="addr_phone" name="phone" style="border: none;background: none;box-shadow: none;height:24px" type="tel" size="60" placeholder="请输入电话号码" class="validate[required,custom[phone]] zhaoinput" >
					</div>
				</div>				

				</div>
			</section>
							<div class="deal-btn">
					<input type="submit" class="j_submit" value="保 存" id="address_submit_button">
					<font id="address_submit_result"></font>
				</div>
</form>
		</div>

</div>
{~ui('loader')->css('@jquery.validationEngine')}
{~ui('loader')->js('@jquery.validationEngine')}
{~ui('loader')->js('@jquery.validationEngine.cn')}
{~ui('loader')->js('@jquery.form')}
<script type="text/javascript" src="../static/js/me.address.js"></script>
<script type="text/javascript" src="../static/js/pingfore.js"></script>
<!--{template "wap_footer"}--></body></html>